﻿<!--#include file="include/conn_f.asp"-->
<!--#include file="top.asp"-->
<!--#include file="left.asp"-->
<table width="550">
    <tr>
        <td width="550" align="center">
            <center>
                欢迎来到游龙网!</center>
            <%
If Session("cust_id")="" Then
    Response.Write "操作超时!请重新登陆!<br />"
    Response.End 
End If

sql="select username,balance,buytimes,isactive,VIP,message from customer where cust_id="&Session("cust_id")
Set rs=conn.execute(sql)
If Not rs.eof Then
    ISVIP=cint(rs("VIP"))
    isactive=cint(rs("isactive"))
    message=rs("message")
    If len(message)>1 Then
        message=replace(message," ","&nbsp;")
        message=replace(message,chr(13),"<br />")
        Response.Write "<table width='300' align=center border=1 cellspacing='0' class='little' ><caption>工作人员给你的消息<tr><td><font color='red' size=3>"&message&"</font></td></tr>"
    End If

    Response.Write "<table width='300' align=center border=1 cellspacing='0' class='little' ><caption>会员信息"
    Response.Write "<tr><td>会员帐号:</td><td>"&rs("username")&"</td></tr>"
    Response.Write "<tr ><td>帐户余额:</td><td>"&rs("balance")&"&nbsp;</td></td></tr>"
    Response.Write "<tr ><td>消费积分:</td><td>"&rs("buytimes")&"</td></td></tr>"	
    If isactive=1 Then
        Response.Write "<tr ><td>会员状态:</td><td><font color='green'>激活</font></td></td></tr>"	
    Else
        Response.Write "<tr ><td>会员状态:</td><td><font color='red'>未激活</font></td></font></td></tr>"
    End If
    If ISVIP=1  Then
        Response.Write "<tr ><td>会员级别:</td><td><font color=red>VIP</font>会员</td></td></tr>"
    Else
        Response.Write "<tr ><td>会员级别:</td><td>普通会员</td></td></tr>"					
    End If
    
Else
    Response.Write "Error=201"
    Response.End
End If


Response.Write "</table><br /><table width='300' align=center border=0 cellspacing='0'>"
            %>
            <tr>
                <td>
                    <input type="button" value="开始购物" onclick="self.location='./';">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="储值到会员帐号" onclick="self.location='deposit.asp';">
                </td>
            </tr>
            <%
If ISVIP=1 Then
            %>
            <tr>
                <td>
                    <input type="button" value="汇款到国内" onclick="self.location='huikuan.asp';">
                </td>
            </tr>
            <%
End If
            %>
            <tr>
                <td>
                    <input type="button" value="我的定单" onclick="self.location='history.asp';">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="更新个人资料" onclick="self.location='profile.asp';">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="更改密码" onclick="self.location='changepwd.asp';">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="退出登录" onclick="self.location='logout.asp';">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="联系客服" onclick="self.location='aboutus.asp';">
                </td>
            </tr>
</table>
</td></tr> </table>
<!--#include file="bottom.asp"-->
